package com.hy.erp.inventory.pojo;

import java.io.Serializable ;

import javax.persistence.Column ;
import javax.persistence.Entity;
import javax.persistence.Id ;
import javax.persistence.Table;

import org.hibernate.annotations.Index ;
/*import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*/
import com.hy.erp.inventory.dao.interfaces.IRoleTypeDao;
import com.hy.erp.inventory.pojo.interfaces.IRoleType;
import com.hy.erp.inventory.pojo.interfaces.IStockType;
/*import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
*/import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-5；时间：下午03:32:50</li>
 * <li>类型名称：RoleType</li>
 * <li>设计目的：角色类型</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@Entity
@Table(name="t_roleType")
/*
@Name("roleType")
@Scope(ScopeType.SESSION)
@DaoA(IRoleTypeDao.class)
*/
//public class RoleType extends AbstractPersistentEntity	implements			IRoleType
public class RoleType extends MyBaseModel //implements IPositonType
{
	private static final long	serialVersionUID	=
														7130947005988318292L ;


	
	/**
	 * 构造函数
	 */
	public RoleType(){}
	
	
	@Column(name="description",unique=false,nullable=false,insertable=true,updatable=true)
	public String getDescription ( )
	{
		return this.get(IRoleType.DESCRIPTION) ;
	}
	public void setDescription (
									String description )
	{
		super.set(IRoleType.DESCRIPTION, description);
	}
	@Column(name="roleName",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="roleName")
	public String getRoleName() {
		return this.get(IRoleType.ROLENAME);
	}
	public void setRoleName(String roleName) {
		super.set(IRoleType.ROLENAME, roleName);
	}
}
